//
//  STBacnkCardTableViewCell.m
//  KunLun
//
//  Created by Mac on 2017/11/27.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import "STBacnkCardTableViewCell.h"
@interface STBacnkCardTableViewCell()
@property(nonatomic, strong) STLabel                         *nameLabel;
@property(nonatomic, strong) STLabel                         *zhihangLabel;
@property(nonatomic, strong) STLabel                         *cardLabel;
@property(nonatomic, strong) STLabel                         *nickNameLabel;
@end

@implementation STBacnkCardTableViewCell
+ (CGFloat)CellHeight{
    return 100;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
#pragma mark --subView
- (void)configSubView{
    
    self.backgroundColor = [UIColor clearColor];
    
    UIView * whiteView = [[UIView alloc] initWithFrame:CGRectMake(15, 10, UIScreenWidth - 30, 80)];
    whiteView.backgroundColor = [UIColor whiteColor];
    whiteView.layer.cornerRadius = 10;
    whiteView.clipsToBounds = YES;
    [self addSubview:whiteView];
    
    self.nameLabel = [[STLabel alloc] initWithFrame:CGRectMake(10, 5, UIScreenWidth - 80, 20)
                                               text:@"----"
                                          textColor:FirstTextColor
                                               font:13
                                        isSizetoFit:NO
                                      textAlignment:NSTextAlignmentLeft];
    [whiteView addSubview:self.nameLabel];


    
    self.cardLabel = [[STLabel alloc] initWithFrame:CGRectMake(10, 300, UIScreenWidth - 20, 20)
                                               text:@"----"
                                          textColor:FirstTextColor
                                               font:13
                                        isSizetoFit:NO
                                      textAlignment:NSTextAlignmentRight];
    [whiteView addSubview:self.cardLabel];
    self.cardLabel.right = whiteView.width - 10;
    self.cardLabel.bottom = whiteView.height - 5;
    

    
    

    
}
- (void)setModel:(STBankModel *)model{
    _model = model;
    self.nameLabel.text = model.bank;
    self.cardLabel.text = model.bank_card;
    
}

@end
